package com.cjkj.system.api.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 *
 * @author cjkj
 * @date 2024-08-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LatestDatasReq {

    /**
     * 设备编号
     */
    private String equipmentNo;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 需要获取的数据条数
     */
    private Integer total;

    /**
     * 获取多个设备的最新数据
     */
    private List<LatestDatasReqEquipmentInfo> equipmentList;

    public LatestDatasReq(String equipmentNo, Date startTime, Date endTime, Integer total) {
        this.equipmentNo = equipmentNo;
        this.startTime = startTime;
        this.endTime = endTime;
        this.total = total;
    }
}
